package crp.core.security.domain.models;

import io.quarkus.panache.common.Range;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;

import java.util.Set;

@Getter
@Builder
@AllArgsConstructor
public class RoleQuery {
    private final Set<RoleType> types;
    private final String keyword;
    private final Range range;

    public static RoleQuery.RoleQueryBuilder custom() {
        return RoleQuery.builder().types(Set.of(RoleType.CUSTOM));
    }
}
